home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LOC / ZLOCAPP.C < prev    next >
Text File  |  1991-10-17  |  2KB  |  80 lines

  1. /* zLOCApp.c -- application methods */
  2. /* Created 10/17/91 4:10 PM by AppMaker */
  3.  
  4. /*    We recommend that you not modify this module and instead modify        */
  5. /*    its subclass, LOCApp.  The 'z' prefix on this module marks            */
  6. /*    a module which is likely to be regenerated by AppMaker after you    */
  7. /*    make changes to the user interface.  The modules without the 'z'    */
  8. /*    prefix will not be regenerated by AppMaker unless you delete them.    */
  9. /*    Using a separate subclass to override the AppMaker-generated code    */
  10. /*    lets you regenerate code without losing your hand-coded changes.    */ 
  11.  
  12. #include <Commands.h>
  13. #include <CBartender.h>
  14. #include "ResourceDefs.h"
  15. #include "LOCDoc.h"
  16. #include "zLOCApp.h"
  17.  
  18. extern    OSType         gSignature;
  19. extern    CBartender    *gBartender;
  20.  
  21. /*----------*/
  22. void    ZLOCApp::ILOCApp    (void)
  23. {
  24.     CApplication::IApplication (4, 20480L, 2048L);
  25.  
  26.     } /* ILOCApp */
  27.  
  28. /*----------*/
  29. void    ZLOCApp::SetUpMenus    (void)
  30. {
  31.     inherited::SetUpMenus ();
  32.     
  33.     gBartender->SetDimOption (FileID, dimNONE);
  34.     gBartender->SetUnchecking (FileID, TRUE);
  35.     gBartender->SetDimOption (128, dimNONE);
  36.     gBartender->SetUnchecking (128, TRUE);
  37.         
  38. } /* SetUpMenus */
  39.  
  40. /*----------*/
  41. void    ZLOCApp::CreateDocument    (void)
  42. {
  43.     CLOCDoc            *theDocument;
  44.  
  45.     theDocument = new (CLOCDoc);
  46.     theDocument->ILOCDoc (this, TRUE);
  47.     theDocument->NewFile ();
  48.  
  49. } /* CreateDocument */
  50.  
  51. /*----------*/
  52. void    ZLOCApp::OpenDocument    (SFReply    *macSFReply)
  53. {
  54.     CLOCDoc            *theDocument;
  55.  
  56.     theDocument = new (CLOCDoc);
  57.     theDocument->ILOCDoc (this, TRUE);
  58.     theDocument->OpenFile (macSFReply);
  59.  
  60. } /* OpenDocument */
  61.  
  62. /*----------*/
  63. void    ZLOCApp::DoCommand    (long        theCommand)
  64. {
  65.     switch (theCommand) {
  66.         case cmdSelectFolder:
  67.             /* handle SelectFolder choice; */
  68.             break;
  69.         case cmdBaselineMetrics:
  70.             /* handle BaselineMetrics choice; */
  71.             break;
  72.                 default:
  73.                 inherited::DoCommand (theCommand);
  74.             break;
  75.     } /* switch */
  76.  
  77. } /* DoCommand */
  78.  
  79. /* zLOCApp.c */
  80.